// samsting : this file is auto create.

#include "Slb/2013-02-21/DescribeLoadBalancerAttributeResponse.h"

namespace aliyun { namespace Slb {

DescribeLoadBalancerAttributeResponse::DescribeLoadBalancerAttributeResponse() {
}

const string& DescribeLoadBalancerAttributeResponse::BackendServer::GetServerId(void) const {
  return ServerId_;
}

int DescribeLoadBalancerAttributeResponse::BackendServer::GetWeight(void) const {
  return Weight_;
}

const std::vector<DescribeLoadBalancerAttributeResponse::BackendServer>& DescribeLoadBalancerAttributeResponse::GetBackendServers(void) const {
  return BackendServers_;
}

const std::vector<ListenerPort>& DescribeLoadBalancerAttributeResponse::GetListenerPorts(void) const {
  return ListenerPorts_;
}

const string& DescribeLoadBalancerAttributeResponse::GetLoadBalancerId(void) const {
  return LoadBalancerId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetLoadBalancerName(void) const {
  return LoadBalancerName_;
}

const string& DescribeLoadBalancerAttributeResponse::GetLoadBalancerStatus(void) const {
  return LoadBalancerStatus_;
}

const string& DescribeLoadBalancerAttributeResponse::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetAddress(void) const {
  return Address_;
}

const string& DescribeLoadBalancerAttributeResponse::GetIsPublicAddress(void) const {
  return IsPublicAddress_;
}

const char* DescribeLoadBalancerAttributeResponse::BaseKey(void) {
  return "DescribeLoadBalancerAttributeResponse";
}

void DescribeLoadBalancerAttributeResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int BackendServers__length = 0;
  UnmarshallerInt(BackendServers__length, response_map, "DescribeLoadBalancerAttributeResponse.BackendServers.Length");
  if(BackendServers__length >= 0) {
    BackendServers_.resize(BackendServers__length);
    for(int i1 = 0; i1 < BackendServers__length; i1++) {
      UnmarshallerString(BackendServers_[i1].ServerId_, response_map, "DescribeLoadBalancerAttributeResponse.BackendServers["+string_ValueOfInt(i1)+"].ServerId");
      UnmarshallerInt(BackendServers_[i1].Weight_, response_map, "DescribeLoadBalancerAttributeResponse.BackendServers["+string_ValueOfInt(i1)+"].Weight");
    } // for(int i1 = 0; i1 < BackendServers__length; i1++) {
  } // if(BackendServers__length >= 0) {

    int ListenerPorts__length = 0;
    UnmarshallerInt(ListenerPorts__length, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPorts.Length");
    if(ListenerPorts__length >= 0) {
      ListenerPorts_.resize(ListenerPorts__length);
      for(int i1 = 0; i1 < ListenerPorts__length; i1++) {
      UnmarshallerString(ListenerPorts_[i1], response_map, "DescribeLoadBalancerAttributeResponse.ListenerPorts["+string_ValueOfInt(i1)+"]");
      } // for(int i1 = 0; i1 < ListenerPorts__length; i1++) {
    } // if(ListenerPorts__length >= 0) {

  UnmarshallerString(LoadBalancerId_, response_map, "DescribeLoadBalancerAttributeResponse.LoadBalancerId");
  UnmarshallerString(LoadBalancerName_, response_map, "DescribeLoadBalancerAttributeResponse.LoadBalancerName");
  UnmarshallerString(LoadBalancerStatus_, response_map, "DescribeLoadBalancerAttributeResponse.LoadBalancerStatus");
  UnmarshallerString(RegionId_, response_map, "DescribeLoadBalancerAttributeResponse.RegionId");
  UnmarshallerString(Address_, response_map, "DescribeLoadBalancerAttributeResponse.Address");
  UnmarshallerString(IsPublicAddress_, response_map, "DescribeLoadBalancerAttributeResponse.IsPublicAddress");
}


} } // namespace aliyun { namespace Slb {

// end of file 
